package com.softwareconstruction.model;

public class JournalPaper extends Paper {
    private String journalName;
    private double impactFactor;
    
    public JournalPaper(String title, String author, String journalName, double impactFactor) {
        super(title, author);
        this.journalName = journalName;
        this.impactFactor = impactFactor;
    }
    
    public String getJournalName() {
        return journalName;
    }
    
    public void setJournalName(String journalName) {
        this.journalName = journalName;
    }
    
    public double getImpactFactor() {
        return impactFactor;
    }
    
    public void setImpactFactor(double impactFactor) {
        this.impactFactor = impactFactor;
    }
    
    @Override
    public String getType() {
        return "JournalPaper";
    }
    
    @Override
    public void accept(com.softwareconstruction.pattern.PaperVisitor visitor) {
        visitor.visit(this);
    }
}